package edu.hnu.cloudflightserver.server.impl;

import edu.hnu.cloudflight.android.domain.Flight;
import edu.hnu.cloudflightserver.dao.FlightServerRecordDao;
import edu.hnu.cloudflightserver.dao.impl.FlightServerRecordDaoImpl;
import edu.hnu.cloudflightserver.server.FlightServerRecord;

public class FlightServerRecordImpl implements FlightServerRecord {

	
	private static FlightServerRecord recordServer;
	
	private static FlightServerRecordDao recordDao;
	
	static{
		recordServer = new FlightServerRecordImpl();
		recordDao = new FlightServerRecordDaoImpl();
	}
	
	public static FlightServerRecord getRecordInstance(){
		return recordServer;
	}
	
	public boolean recordQuery(String type,Flight f, String userName,String queryDate) {
		// TODO Auto-generated method stub
		return recordDao.recordQuery(type,f, userName,queryDate);
	}

	public boolean recordWarnTask(Flight f, String userName,String queryDate) {
		// TODO Auto-generated method stub
		return recordDao.recordWarnTask(f, userName,queryDate);
	}

}
